home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / ZTIMER11.ARJ / MOVTST.ASM < prev    next >
Assembly Source File  |  1991-11-12  |  413b  |  23 lines

  1. ; Sample code to measure the performance of 1000 loads of AL from
  2. ; memory. Use by renaming to TESTCODE, which is included in PZTEST.ASM.
  3. ; PZTIME.BAT does this, along with assembling and linking the code.
  4.  
  5.         jmp     Skip                ; Jump around any defined data
  6.  
  7. MemVar  db      ?
  8.  
  9. Skip:
  10.  
  11. ; Start timing
  12.  
  13.         call    ZTimerOn
  14.  
  15.         rept    1000
  16.         mov        al,[MemVar]
  17.         endm
  18.  
  19. ; Stop timing
  20.  
  21.         call    ZTimerOff
  22.  
  23.